package cn.swust.model;

//产品表，该表保存产品的简单描述，详细产品在detailpro
public class ProductBean {

	private int id;
	private String caption;//产品的标题
	private String picUrl;//产品的缩略图路径
	private float goldPrice;//产品的售价（金币）
	private int inventory;//产品库存数量
	private String donor;//产品捐献者
	private String picPath;//产品详细图片上传路径
	private String remark;//产品备注
	private String storeTime;//产品入库时间
	private String keyword;//产品搜索关键词
	private int detailProId;//产品详细描述的主键id
	private int limit;//产品购买限制，0,1,2，都可以购买，仅仅贫困生可以购买，仅仅爱心捐助者购买
	private int classify;//产品分类
	private float lovePrice;//爱心币价格
	private DetailProductBean detailPro;//产品详情
	private String allPics;//所有图片的名称
	
	public String getAllPics() {
		return allPics;
	}

	public void setAllPics(String allPics) {
		this.allPics = allPics;
	}

	public ProductBean(){
		caption = "";
		picUrl = ".";
		goldPrice = 0;
		inventory = 0;
		keyword = "";
		detailProId = 1;
		limit = 0;
		classify = 0;
		lovePrice = 0;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCaption() {
		return caption;
	}
	public void setCaption(String caption) {
		this.caption = caption;
	}
	public String getPicUrl() {
		return picUrl;
	}
	public void setPicUrl(String picUrl) {
		this.picUrl = picUrl;
	}
	public float getGoldPrice() {
		return goldPrice;
	}
	public void setGoldPrice(float goldPrice) {
		this.goldPrice = goldPrice;
	}
	public int getInventory() {
		return inventory;
	}
	public void setInventory(int inventory) {
		this.inventory = inventory;
	}
	public String getDonor() {
		return donor;
	}
	public void setDonor(String donor) {
		this.donor = donor;
	}
	public String getPicPath() {
		return picPath;
	}
	public void setPicPath(String picPath) {
		this.picPath = picPath;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getStoreTime() {
		return storeTime;
	}
	public void setStoreTime(String storeTime) {
		this.storeTime = storeTime;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public int getDetailProId() {
		return detailProId;
	}
	public void setDetailProId(int detailProId) {
		this.detailProId = detailProId;
	}
	public int getLimit() {
		return limit;
	}
	public void setLimit(int limit) {
		this.limit = limit;
	}
	public int getClassify() {
		return classify;
	}
	public void setClassify(int classify) {
		this.classify = classify;
	}
	public float getLovePrice() {
		return lovePrice;
	}
	public void setLovePrice(float lovePrice) {
		this.lovePrice = lovePrice;
	}
	public DetailProductBean getDetailPro() {
		return detailPro;
	}
	public void setDetailPro(DetailProductBean detailPro) {
		this.detailPro = detailPro;
	}
}
